package com.exonline.commons.base;
/**
 * @desc  自定义业务层泛型接口
 * @author hbrj
 */

import java.sql.SQLException;
import java.util.List;

public interface IBaseService<T> {

    //1.查询全部+分页
    public default List<T> queryAll(int pageSize, int pageNo) throws SQLException {
        return null;
    }

    //2.查询一条
    public default T queryOne(String id) throws SQLException {
        return null;
    }

    //3.添加一条
    public default void add(Object... obj) throws SQLException {

    }

    //4.修改
    public default void update(Object... obj) throws SQLException {
    }

    //5.根据Id进行删除
    public default void deleteById(String id) throws SQLException {

    }
}
